package com.hqyj.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

@Data
@TableName("user_info")
public class UserInfo {
  //主键
  //用户id
  @TableId(value = "user_id",type = IdType.AUTO)
  private Integer userId;

  //TableField 非主键的注解 ，定义的属性和列名的映射关系
  //用户名
  @TableField(value = "user_name")
  private String userName;

  //用户密码
  @TableField(value = "user_pwd")
  private String userPwd;

  private Integer studentId;


}
